<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('单位余额')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row" id="deptyue">
        <!--登录信息-->
        <input name="userid" th:value="${session.userid}" type="hidden" id="userid">
        <input name="username" th:value="${session.username}" type="hidden" id="username">
        <input name="deptid" th:value="${session.deptid}" type="hidden" id="deptid">
        <input name="olddeptid" th:value="${session.olddeptid}" type="hidden" id="olddeptid">
        <input name="jigoujibie" th:value="${session.jigoujibie}" type="hidden" id="jigoujibie">
        <input name="roleid" th:value="${session.roleid}" type="hidden" id="roleid">
        
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <label style="width: 100px;">批次名称：</label>
                            <input type="text" />
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" @click="bindYueList"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" @click="reset"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="col-sm-12 select-table table-striped">

            <div class="btn-group-sm" id="toolbar" role="group" style="margin-top: 10px;margin-bottom: 20px;">
                <a class="btn btn-success" @click="">
                    <i class="fa fa-plus"></i> 添加
                </a>
            </div>

            <table class="table table-hover table-primary table-striped">
                <thead>
                <tr>
                    <th style="text-align: center; vertical-align: middle;">序号</th>
                    <th style="text-align: center; vertical-align: middle;">批次名称</th>
                    <th style="text-align: center; vertical-align: middle;">发放时间</th>
                    <th style="text-align: center; vertical-align: middle;">未收款余额</th>
                    <th style="text-align: center; vertical-align: middle;">余额</th>
                    <th style="text-align: center; vertical-align: middle;">待发金额</th>
                    <th style="text-align: center; vertical-align: middle;">滞留金额</th>
                    <th style="text-align: center; vertical-align: middle;">操作</th>
                </tr>
                </thead>
                <tbody>
                <tr v-for="(piciitem,index) in yuelist"  v-if="yuelist.length > 0">
                    <td style="vertical-align: middle; text-align: center;" v-text="index+1"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="piciitem.jingfeipicimingcheng"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="piciitem.fafangshijian"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="piciitem.weishoukuanyue"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="piciitem.yue"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="piciitem.daifa"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="piciitem.zhiliu"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="">
                        <button class="btn btn-success btn-rounded btn-md" @click="">查看</button>
                    </td>
                </tr>
                <tr v-if="yuelist.length == 0">
                    <td style="text-align: center; vertical-align: middle" colspan="8">查无数据</td>
                </tr>
                </tbody>
            </table>

                            <div v-if="recordCount != '0'" class="my-page-navigation" style="text-align:center;">
                                <button class="btn btn-default" @click="firstPage">首页</button>
                                <button class="btn btn-default" @click="prePage">上一页</button>
                                <select class="custom-select border-secondary" v-model="pagesize">
                                    <option value="10">10 条/页</option>
                                    <option value="20">20 条/页</option>
                                    <option value="30">30 条/页</option>
                                    <option value="50">50 条/页</option>
                                </select>
                                <span v-text="pageindex + '  /  ' + pageCount" style="border-color: #6c757d"></span>
                                <span v-text="'共' + recordCount + '条'" style="border-color: #6c757d"></span>
                                <button class="btn btn-default" @click="nextPage">下一页</button>
                                <button class="btn btn-default" @click="lastPage">尾页</button>
                                <span style="border-color: #6c757d">跳到第</span>
                                <input type="text" class="form-control border-secondary" style="width:50px;display:inline;" v-model="targetpage" @keyup.enter="targetPage">
                                <span style="border-color: #6c757d">页</span>
                                <button class="btn btn-default" @click="targetPage">跳</button>
                            </div>
        </div>


    </div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:src="@{/js/system/deptyue/index.js?v=1.2}"></script>

</body>
</html>